﻿using IterationLife.System.Models;

namespace IterationLife.System.Tools
{
    public static class AuthenticationTokenHelper
    {
        public static string GenerateToken(User user)
        {
            //todo,加密并设置有效时长
            return user.Id.ToString();
        }

        public static bool IsTokenValid(string token)
        {
            //todo
            return true;
        }

        public static string GetUserIdByToken(string token)
        {
            //todo
            return token;
        }
    }
}
